#ifndef TEXTQGSMAPCANVASITEM_H
#define TEXTQGSMAPCANVASITEM_H

#include <QPainter>
#include <qgsmapcanvasitem.h>


class TextQgsMapCanvasItem : public QgsMapCanvasItem
{
public:
    explicit TextQgsMapCanvasItem(QgsMapCanvas* canvas);

    void setText(const QString &text);

    void setPosition(const QPointF &position);

protected:
    void paint(QPainter *painter) override;

private:
    QString mText;
    QPointF mPoint;
};

#endif // TEXTQGSMAPCANVASITEM_H
